<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>


<div class="row">
    <div class="col-md-12">
            <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title"><?php echo anchor('backend/ionauth/permission/create', '<i class="fa fa-plus"></i> 创建权限', array('class' => 'btn btn-block btn-primary btn-flat')); ?></h3>
            </div>
            <div class="box-body">
                <table class="table table-striped table-hover">
                    <thead>
                        <tr>
                            <th>KEY</th>
                            <th>名称</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
<?php foreach($permissions as $permission) : ?>
                        <tr>
                            <td><?php echo $permission['key']; ?></td>
                            <td><?php echo $permission['name']; ?></td>
                            <td><?php echo anchor("backend/ionauth/permission/edit/".$permission['id'], lang('actions_edit')); ?>
                            </td>
                        </tr>
<?php endforeach;?>
                    </tbody>
                </table>
            </div>
        </div>
        </div>
</div>
